package ift605.EquationWithTrainingAgents.behavior.special;

import java.util.List;

import udes.ds.agent.Constant;
import udes.ds.agent.MultiplicativeEquation;
import ift605.EquationWithTrainingAgents.behavior.common.DeriverBehavior;
import ift605.EquationWithTrainingAgents.struct.DerivationInfo;

public class NegateBehavior extends DeriverBehavior {
	private static final long serialVersionUID = 1L;

	@Override
	public boolean derive(List<DerivationInfo> aDerivationInfos) {
		aDerivationInfos.get(0).Mess.derived = new MultiplicativeEquation(new Constant(-1), aDerivationInfos.get(0).Mess.derived);
		return true;
	}
}
